#ifndef PROJECTWIZARD_HXX
#define PROJECTWIZARD_HXX

#include <QWizard>
#include <QObject>
#include <QLineEdit>
#include <QComboBox>
#include <QListWidget>
#include <QPushButton>

#include "Project.hxx"

class ProjectWizard : public QWizard
{
    Q_OBJECT
public:
    ProjectWizard();

    QWizardPage* createProjectPage();
    QWizardPage* createClassesPage();
    QWizardPage* createVideosPage();

    inline void setProject(Project* prj) { _project = prj; }

    void done(int r);

public slots:
    void addClass();
    void delClass();
    void addVideo();
    void delVideo();

    void classSelectionChanged();
    void videoSelectionChanged();

private:
    Project* _project;

    QLineEdit* _edtProjectName;
    QComboBox* _cbProjectType;

    QListWidget* _lwClasses;
    QLineEdit* _edtClassName;
    QPushButton* _btnAddClass;
    QPushButton* _btnDelClass;

    QListWidget* _lwVideos;
    QPushButton* _btnAddVideo;
    QPushButton* _btnDelVideo;
};

#endif // PROJECTWIZARD_HXX
